#include "../sock.h"

int main (void)
{
  sockparams * params = bk_clientinit(5467, "localhost", 0, 10);
  //  iface->params->callback = fb;
  while (bk_clientconnect(params)!=0)
    {
      sleep(1);
      printf ("trying to connect to ecv\n");
    }
  int data = 1235;
  write(params->sock, &data, sizeof(int));
  while (1)
    {
      if (read (params->sock, &data, sizeof(int))>0)
	printf ("--client data received\n");
      printf ("stepping\n");
    }
  close(params->sock);
  return 0;
}
